package com.liumuxian.user.service;

import com.liumuxian.user.pojo.Admin;
import com.liumuxian.user.pojo.User;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface AdminService {

    void saveAdmin(Admin admin);

    void updateAdmin(Admin admin);

    void deleteAdminById(String id);

    List<Admin> findAdminList();

    List<Admin> findAdminList(Map searchMap);

    Admin findAdminById(String id);

    Page<Admin> findAdminListPage(Map searchMap, int page, int size);

    Admin findAdminByAccountAndPassword(String account, String password);
}
